<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>查看图书</title>
		<link rel="stylesheet" type="text/css"
			href="../css/commonBookTest.css">
		<style type="text/css">
			body {
				font-family: 华文楷体;
				color: #ffffff;
				background-color: #556b2f;
			}
			
			a:active {
				color: #ffffff;
				text-decoration: none;
			}
			
			a:visited {
				color: #96CFFC;
				text-decoration: none;
			}
			
			a:hover {
				color: yellow;
				text-decoration: underline;
			}
			
			.ta {
				position: relative;
				top: 30px;
			}
			
			.ta01 {
				position: relative;
				top: 0px;
			}
			
			.td00 {
				font-family: 华文楷体;
			}
		</style>
		<script type="text/javascript">
			function turnBackOrder() {
				var qq;
				var qt;
				qt = document.getElementById("qt");
				qq = document.getElementById("qq");
			
				if (qq.value == "order") {
					window.history.back(-1);
				} else {
					window.location.href = qt.value;
				}
			}
		</script>
	</head>
	<body>
		<center>
			<table width="80%" border="0" class="ta">
				<tr>
					<td align="left">
						<c:if test="${not empty path }">
							<a href="${CONTEXT_ROOT }/SysBookServlet?method=list">图书分类</a>- ${path}
					</c:if>
					</td>
					<td align="right">
						<input type="hidden" name="qq" id="qq" value="${q}">
						<input type="hidden" name="qt" id="qt"
							value="${CONTEXT_ROOT}/SysBookServlet?method=list&parentCategoryId=${parentCategoryId}">
						<a href="#" onclick="turnBackOrder()">返回列表</a>
					</td>
				</tr>
			</table>
			<br>
			<br>
			<table width="80%" border="1" class="ta01">
				<tr>
					<th height="50" colspan="3">
						${book.bookName }<br>
					</th>
				</tr>
				<tr>
					<td align="right" valign="top" width="18%">
						书名&nbsp;&nbsp;
					</td>
					<td align="left" valign="top" width="82%" colspan="2">
						${book.bookName }<br>
					</td>
				</tr>
				<tr>
					<td align="right" valign="top">
						分类&nbsp;&nbsp;
					</td>
					<td align="left" valign="top" width="50%">
						${bookCategory.categoryName }&nbsp;
					</td>
					<td rowspan="8" align="center" valign="middle">
						<img
							src="${CONTEXT_ROOT}/upload/${book.bookImg==''?'no_img.jpg':book.bookImg}"
							height="170px"><br>
					</td>
				</tr>
				<tr>
					<td align="right" valign="top">
						作者&nbsp;&nbsp;
					</td>
					<td align="left" valign="top">
						${book.bookAuthor }<br>
					</td>
				</tr>
				<tr>
					<td align="right" valign="top">
						出版社&nbsp;&nbsp;
					</td>
					<td align="left" valign="top">
						${publish.publishName }<br>
					</td>
				</tr>
				<tr>
					<td align="right" valign="top">
						出版日期&nbsp;&nbsp;
					</td>
					<td align="left" valign="top">
						${book.publishDate}&nbsp;
					</td>
				</tr>
				<tr>
					<td align="right">
						是不是特价书&nbsp;&nbsp;
					</td>
					<td align="left">
						${book.isSpecialPrice==1?"是":"否"}
					</td>
				</tr>
				<tr>
					<td align="right">
						是不是新书&nbsp;&nbsp;
					</td>
					<td align="left">
						${book.isNew==1?"是":"否"}
					</td>
				</tr>
				<tr>
					<td align="right">
						是不是推荐图书&nbsp;&nbsp;
					</td>
					<td align="left">
						${book.isCommend==1?"是":"否"}
					</td>
				</tr>
				<tr>
					<td align="right" valign="top">
						价格&nbsp;&nbsp;
					</td>
					<td align="left" valign="top">
						${book.bookPrice } 元
					</td>
				</tr>
				<tr>
					<td align="right" valign="top">
						图书简介&nbsp;&nbsp;
					</td>
					<td class="td00" valign="top" colspan="2" align="left">
						${book.bookInfo}&nbsp;
					</td>
				</tr>
			</table>
		</center>
	</body>
</html>